package com.gp.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;

import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author 弓成龙
 * @since 2017-11-26
 */
@TableName("base_role")
public class BaseRole extends Model<BaseRole> {

    private static final long serialVersionUID = 1L;

	private Long id;
	private String name;
	private Integer state;
	/**
     * 自定义填充的创建时间
     */
    @TableField(fill = FieldFill.INSERT)// 该注解插入忽略验证，自动填充
	private Date createTime;
    /**
     * 自定义填充的最后一次修改时间
     */
    @TableField(fill = FieldFill.INSERT)// 该注解插入忽略验证，自动填充
	private Date lastModifiedTime;
    
	public Long getId() {
      return id;
    }

    public void setId(Long id) {
      this.id = id;
    }

    public String getName() {
      return name;
    }

    public void setName(String name) {
      this.name = name;
    }

    public Integer getState() {
      return state;
    }

    public void setState(Integer state) {
      this.state = state;
    }

    public Date getCreateTime() {
      return createTime;
    }

    public void setCreateTime(Date createTime) {
      this.createTime = createTime;
    }

    public Date getLastModifiedTime() {
      return lastModifiedTime;
    }

    public void setLastModifiedTime(Date lastModifiedTime) {
      this.lastModifiedTime = lastModifiedTime;
    }

    public static long getSerialversionuid() {
      return serialVersionUID;
    }

  @Override
	protected Serializable pkVal() {
		return this.id;
	}

}
